
#include <stdio.h>
#include <stdlib.h>
#include <string.h>


int main() {
	char str1[100];

	while (scanf("%s", str1) != EOF) {
		int n;
		int i, j;
		char temp;


		n = strlen(str1);
		for (i = 0, j = n / 2 - 1; i < j; i++, j--) {
			temp = str1[i];
			str1[i] = str1[j];
			str1[j] = temp;
		}
		if (n % 2 == 0)
			i = n / 2;
		else
			i = n / 2 + 1;
		for (j = n - 1; i < j; i++, j--) {
			temp = str1[i];
			str1[i] = str1[j];
			str1[j] = temp;
		}

		puts(str1);
		printf("\n");

	}
	return 0;

}